package com.huawei.appgallery.forum.forum.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
import com.huawei.appgallery.forum.base.card.ForumNode;
import com.huawei.appgallery.forum.forum.card.ForumHorizonCard;
import o.bun.d;

public class ForumHorizonNode extends ForumNode {
    public ForumHorizonNode(Context context) {
        super(context);
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -1);
        layoutParams.weight = 1.0f;
        LinearLayout linearLayout = (LinearLayout) LayoutInflater.from(this.ॱ).inflate(ˋ(), null);
        ˊ(ॱ(linearLayout));
        viewGroup.addView(linearLayout, layoutParams);
        return true;
    }

    private ForumHorizonCard ॱ(View view) {
        ForumHorizonCard forumHorizonCard = new ForumHorizonCard(this.ॱ);
        forumHorizonCard.ˏ(view);
        return forumHorizonCard;
    }

    public int ˋ() {
        return d.ॱॱ;
    }
}
